inherited frmTd_RakeOff_Edit: TfrmTd_RakeOff_Edit
  Left = 506
  Top = 206
  Caption = #25552#25104#27604#29575
  ClientHeight = 446
  ClientWidth = 715
  ExplicitWidth = 723
  ExplicitHeight = 473
  DesignSize = (
    715
    446)
  PixelsPerInch = 96
  TextHeight = 12
  object Label1: TLabel [0]
    Left = 267
    Top = 17
    Width = 60
    Height = 12
    Caption = #25552#25104#21517#31216#65306
    Transparent = True
  end
  object Label2: TLabel [1]
    Left = 13
    Top = 17
    Width = 60
    Height = 12
    Caption = #25552#25104#32534#30721#65306
    Transparent = True
  end
  object Label4: TLabel [2]
    Left = 13
    Top = 52
    Width = 60
    Height = 12
    Caption = #22791'    '#27880#65306
    Transparent = True
  end
  inherited pnlBottom: TPanel
    Top = 386
    Width = 715
    TabOrder = 4
    ExplicitTop = 386
    ExplicitWidth = 715
    inherited Bevel1: TBevel
      Width = 715
      ExplicitWidth = 715
    end
    inherited btnOK: TBitBtn
      Left = 522
      Top = 20
      ExplicitLeft = 522
      ExplicitTop = 20
    end
    inherited btnCancel: TBitBtn
      Left = 617
      Top = 20
      ExplicitLeft = 617
      ExplicitTop = 20
    end
    inherited btnContinue: TBitBtn
      Top = 20
      ExplicitTop = 20
    end
    inherited btnPri: TBitBtn
      Top = 20
      ExplicitTop = 20
    end
    inherited btnNext: TBitBtn
      Top = 20
      ExplicitTop = 20
    end
    inherited btnBaseEditSave: TBitBtn
      Top = 20
      ExplicitTop = 20
    end
  end
  object EdtName: TcxDBTextEdit [4]
    Left = 331
    Top = 13
    DataBinding.DataField = 'name'
    DataBinding.DataSource = MainDataSource
    TabOrder = 9
    Width = 175
  end
  object EdtCode: TcxDBTextEdit [5]
    Left = 78
    Top = 13
    DataBinding.DataField = 'code'
    DataBinding.DataSource = MainDataSource
    TabOrder = 0
    Width = 175
  end
  object EdtExplan: TcxDBTextEdit [6]
    Left = 78
    Top = 47
    DataBinding.DataField = 'explan'
    DataBinding.DataSource = MainDataSource
    TabOrder = 10
    Width = 428
  end
  object grdRakeOffDtl: TcxGrid [7]
    Left = 12
    Top = 139
    Width = 687
    Height = 240
    Anchors = [akLeft, akTop, akRight, akBottom]
    TabOrder = 3
    OnEnter = grdRakeOffDtlEnter
    object viewRakeOffDtl: TcxGridDBTableView
      PopupMenu = pmDetail
      Navigator.Buttons.CustomButtons = <>
      DataController.DataSource = DetailDs
      DataController.Summary.DefaultGroupSummaryItems = <>
      DataController.Summary.FooterSummaryItems = <>
      DataController.Summary.SummaryGroups = <>
      OptionsBehavior.FocusCellOnTab = True
      OptionsBehavior.FocusFirstCellOnNewRecord = True
      OptionsBehavior.GoToNextCellOnEnter = True
      OptionsBehavior.FocusCellOnCycle = True
      OptionsData.Appending = True
      OptionsView.ColumnAutoWidth = True
      OptionsView.GroupByBox = False
      object viewRakeOffDtlorderno: TcxGridDBColumn
        DataBinding.FieldName = 'orderno'
        HeaderAlignmentHorz = taCenter
        Width = 66
      end
      object viewRakeOffDtlsamount: TcxGridDBColumn
        DataBinding.FieldName = 'samount'
        HeaderAlignmentHorz = taCenter
        Width = 142
      end
      object viewRakeOffDtleamount: TcxGridDBColumn
        DataBinding.FieldName = 'eamount'
        HeaderAlignmentHorz = taCenter
        Width = 141
      end
      object viewRakeOffDtlrakeoff: TcxGridDBColumn
        DataBinding.FieldName = 'rakeoff'
        HeaderAlignmentHorz = taCenter
        Width = 142
      end
    end
    object lvlRakeOffDtl: TcxGridLevel
      GridView = viewRakeOffDtl
    end
  end
  object cxDBCheckBox1: TcxDBCheckBox [8]
    Left = 20
    Top = 74
    Caption = #35745#31639#36153#29992
    DataBinding.DataField = 'expensecost'
    DataBinding.DataSource = MainDataSource
    TabOrder = 5
    Transparent = True
  end
  object cxDBCheckBox2: TcxDBCheckBox [9]
    Left = 184
    Top = 73
    Caption = #35745#31639#25104#26412
    DataBinding.DataField = 'salecost'
    DataBinding.DataSource = MainDataSource
    TabOrder = 6
    Transparent = True
  end
  object cxDBRadioGroup1: TcxDBRadioGroup [10]
    Left = 11
    Top = 96
    Caption = #32479#35745#26041#24335
    DataBinding.DataSource = MainDataSource
    Properties.Columns = 2
    Properties.ImmediatePost = True
    Properties.Items = <
      item
        Caption = #25353#37329#39069#32479#35745
      end
      item
        Caption = #25353#25968#37327#32479#35745
      end>
    TabOrder = 7
    Height = 40
    Width = 246
  end
  object cxDBRadioGroup2: TcxDBRadioGroup [11]
    Left = 286
    Top = 96
    Caption = #35745#31639#26041#27861
    DataBinding.DataSource = MainDataSource
    Properties.Columns = 2
    Properties.ImmediatePost = True
    Properties.Items = <
      item
        Caption = #38454#27573#35745#31639
      end
      item
        Caption = #27719#24635#35745#31639
      end>
    TabOrder = 8
    Height = 40
    Width = 246
  end
  inherited MainDataSource: TDataSource
    DataSet = MainDataSet
    Left = 26
    Top = 191
  end
  object MainDataSet: TUniQuery
    Connection = MainDM.UniConn
    SQL.Strings = (
      'select * from td_rakeoff')
    CachedUpdates = True
    Left = 22
    Top = 248
    object MainDataSetid: TIntegerField
      FieldName = 'id'
    end
    object MainDataSetcode: TStringField
      DisplayLabel = #32534#30721
      FieldName = 'code'
      Size = 40
    end
    object MainDataSetname: TStringField
      DisplayLabel = #21517#31216
      FieldName = 'name'
      Size = 60
    end
    object MainDataSetexplan: TStringField
      DisplayLabel = #35828#26126
      FieldName = 'explan'
      Size = 200
    end
    object MainDataSetsalecost: TBooleanField
      DisplayLabel = #35745#31639#25104#26412
      FieldName = 'salecost'
    end
    object MainDataSetexpensecost: TBooleanField
      DisplayLabel = #35745#31639#36153#29992
      FieldName = 'expensecost'
    end
  end
  object qryDetail: TUniQuery
    Connection = MainDM.UniConn
    SQL.Strings = (
      'select * from td_rakeoffdtl')
    CachedUpdates = True
    BeforeInsert = qryDetailBeforeInsert
    OnNewRecord = qryDetailNewRecord
    Left = 180
    Top = 217
    object qryDetailid: TIntegerField
      FieldName = 'id'
      ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
      Required = True
    end
    object qryDetailorderno: TIntegerField
      DisplayLabel = #24207#21495
      FieldName = 'orderno'
      ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
      Required = True
    end
    object qryDetailsamount: TFloatField
      DisplayLabel = #36215#22987#37329#39069
      FieldName = 'samount'
    end
    object qryDetaileamount: TFloatField
      DisplayLabel = #25130#27490#37329#39069
      FieldName = 'eamount'
    end
    object qryDetailrakeoff: TFloatField
      DisplayLabel = #27604#29575
      FieldName = 'rakeoff'
    end
  end
  object DetailDs: TDataSource
    DataSet = qryDetail
    Left = 148
    Top = 173
  end
  object pmDetail: TPopupMenu
    Left = 240
    Top = 124
    object muAppend: TMenuItem
      Caption = #26032#22686
      OnClick = muAppendClick
    end
    object muDelete: TMenuItem
      Caption = #21024#38500
      OnClick = muDeleteClick
    end
  end
end
